from langchain_core.tools import tool


@tool("web_search_api")
def web_search_api(query: str):
    """查询资料信息"""
    with open("./utils/simple_resource.txt", "r", encoding="utf-8") as f:
        text = f.read()
    return f"您搜索'{query}'的信息为\n{text}"
